package org.wutopia.leocloud.domain.security.domain.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.wutopia.leocloud.library.common.domain.account.Account;

@FeignClient(name = "account")
public interface AccountServiceClient {

    @GetMapping("/accounts/{username}")
    Account getUser(@PathVariable("username") String username);
}
